home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-08-16 | 980 b | 26 lines | [TEXT/PJMM] |
- UNIT GMS;
- INTERFACE
-
- { Call this first, if it returns true, then music playing is possible }
- FUNCTION GMSInit: Boolean;
- { Call this to temporarily stop playback of the current music. Should }
- { be called on suspend events }
- PROCEDURE GMSPause;
- { Call this to resume playback of the current music. Call on resume }
- { events }
- PROCEDURE GMSResume;
- { This will clean up everything, release components, etc... }
- PROCEDURE GMSQuit;
- { This is the actual routine to play a 'Musi' resource generated from }
- { Midi2Musi. It will lock it down for you - don't unlock or release }
- { the resource until you are done playing. If you want to stop playing }
- { the current music and not play anything, pass NIL in }
- PROCEDURE GMSPlay (h: Handle);
- { Call this routine during your idle proc - it checks to see if the }
- { music is done playing, and if so, causes it to repeat (don't call }
- { this if you don't want your background music to repeat) }
- PROCEDURE GMSIdle;
-
- IMPLEMENTATION
-
- END.